package com.joysuch.wwyt.dzhapi.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author JamesZY
 * @since 2021-12-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_bp_contractor_staff")
@ApiModel(value="BpContractorStaff对象", description="")
public class ApiBpContractorStaffBean extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID，主键")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "姓名")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "曾用名")
    private String oldName;

    @ApiModelProperty(value = "外来人员编号")
    @TableField("CODE")
    private String code;

    @ApiModelProperty(value = "人员在岗在位同步过去后返回的id")
    private String employeeId;

    @ApiModelProperty(value = "是否已和人员在岗在位同步数据 默认0 否; 1 是")
    private Boolean locateSync;

    @ApiModelProperty(value = "单位ID")
    private Long contractorId;

    @ApiModelProperty(value = "性别")
    @TableField("GENDER")
    private String gender;

    @ApiModelProperty(value = "身份（1.员工；2.管理人员）")
    @TableField("IDENTITY")
    private Integer identity;

    @ApiModelProperty(value = "联系电话")
    @TableField("TELEPHONE")
    private String telephone;

    @ApiModelProperty(value = "学历")
    private Long education;

    @ApiModelProperty(value = "户籍所在")
    private String censusRegister;

    @ApiModelProperty(value = "户籍所在省")
    private Long censusRegisterProvince;

    @ApiModelProperty(value = "户籍所在市")
    private Long censusRegisterCity;

    @ApiModelProperty(value = "通讯地址")
    private String address;

    @ApiModelProperty(value = "参加工作时间")
    private LocalDate joinWorkDate;

    @ApiModelProperty(value = "证件照")
    private String idCardImgJson;

    @ApiModelProperty(value = "民族")
    private String nation;

    @ApiModelProperty(value = "证件号码")
    private String idCardNo;

    @ApiModelProperty(value = "健康状况")
    private String healthStatus;

    @ApiModelProperty(value = "专业")
    private String major;

    @ApiModelProperty(value = "从业所在地")
    private String workAt;

    @ApiModelProperty(value = "从业所在地省")
    private Long workAtProvince;

    @ApiModelProperty(value = "从业所在地市")
    private Long workAtCity;

    @ApiModelProperty(value = "邮编")
    private String postcode;

    @ApiModelProperty(value = "职称/技能等级")
    private String title;

    @ApiModelProperty(value = "数据状态字段: 0 无效; 1 有效")
    private Boolean state;

    @ApiModelProperty(value = "证件类型")
    private Long idCardType;

    @ApiModelProperty(value = "定位卡号")
    private String sn;

    @ApiModelProperty(value = "门禁卡号")
    private String cardNumber;

    @ApiModelProperty(value = "头像图标")
    private String facePic;

    @ApiModelProperty(value = "外部链接URL")
    private String refUrl;

    @ApiModelProperty(value = "不同系统同步唯一标识ID")
    private String uniqueId;

    @ApiModelProperty(value = "报警模板id")
    private Long alarmTemplateId;

    @ApiModelProperty(value = "报警模板名称")
    private String alarmTemplateName;

    @ApiModelProperty(value = "承包商人员帽子id")
    private Long capId;


}
